package com.henghong.risk.controller;

import com.henghong.risk.dto.QualityProgressionListDTO;
import com.henghong.risk.result.Result;
import com.henghong.risk.service.QualityProgressionListService;
import com.henghong.risk.vo.QualityProgressionListVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/quality")
@Slf4j
@Api(tags = "品質推進会")
public class QualityProgressionListController {

    @Autowired
    private QualityProgressionListService qualityProgressionListService;

    @GetMapping("/btnQpSearchClick")
    @ApiOperation(value = "品質推進会信息取得")
    public Result<List<QualityProgressionListVo>> btnQpSearchClick(QualityProgressionListDTO qualityProgressionListDTO) {
        List<QualityProgressionListVo> qualityProgressionListVoList = qualityProgressionListService.btnQpSearchClick(qualityProgressionListDTO);
        return Result.success(qualityProgressionListVoList);
    }
}
